for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
'use strict';
import './jquery';
// import 'babel-polyfill';
(function() {
var testObject = {};
if (!(Object.setPrototypeOf || testObject.__proto__)) {
var nativeGetPrototypeOf = Object.getPrototypeOf;
Object.getPrototypeOf = function(object) {
Object
if (object.__proto__) {
return object.__proto__;
} else {
return nativeGetPrototypeOf.call(Object, object);
}
})();
if (!Object.assign) {
Object.assign = $.extend;
if (!Array.prototype.includes) {
Object.defineProperty(Array.prototype, 'includes', {
value(...args) {
return $.inArray(...args, this) !== -1;
});
class jQueryPromise {
constructor(callback) {
this.deferred = $.Deferred();
callback((o) => {
this.deferred.resolve(o);
}, (o) => {
this.deferred.reject(o);
this.promise = this.deferred.promise();
then(resolve, reject) {
this.promise.done(resolve);
this.promise.fail(reject);
return this;
catch(reject) {
if (!window.Promise) {
window.Promise = jQueryPromise;